/*GP环境*/
let env = 'mock',url= '/toa-mgw/rest/webgateway'
if(window.location.href.indexOf('toa-gp-dmzstg')>-1) {
	env = 'test';
}else if(window.location.href.indexOf('mgw')>-1&&window.location.href.indexOf('res-b')>-1){
	env = 'pre';
	url = '/toa-mgw/rest/webgateway?reqflag=2';
}else if(window.location.href.indexOf('mgw')>-1&&window.location.href.indexOf('res-b')==-1){
	url = '/toa-mgw/rest/webgateway';
	env = 'product';
}

export default {
	env:env,
	url:url
}
/*h5前端环境*/
/*let env = 'mock',url= '/yizhangtong/api/gp'
if(window.location.href.indexOf('test-toa-web-h5-stg')>-1) {
	env = 'test';
}else if(window.location.href.indexOf('mgw')>-1&&window.location.href.indexOf('res-b')>-1){
	env = 'pre';
}else if(window.location.href.indexOf('m.pingan.com')>-1){
	env = 'product';
}
export default {
	env:env,
	url:url
}
*/